package com.foodsafe.action;

import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.foodsafe.model.Goods;
import com.google.gson.Gson;
import com.opensymphony.xwork2.ActionSupport;
@Component("ActionTest")
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public class ActionTest extends ActionSupport{

	private Goods goods;
	@Override
	public String execute() throws Exception {
		
		goods=new Goods();
		goods.setGoodsId(1);
	
		return SUCCESS;
	}
	public Goods getGoods() {
		return goods;
	}
}
